﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Acoris.Diagnostics
{
    /// <summary>
    /// 表示诊断帧
    /// </summary>
    public sealed class DiagnosticFrame
    {
        //---------------------------------------------------------------------------------------------------
        //  诊断帧，用于存储内核文档重建、布局、渲染过程中相关信息
        //---------------------------------------------------------------------------------------------------

        long _startStamp;
        long _endStamp;
        ActionType _type;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="type"></param>
        public DiagnosticFrame(ActionType type,long startStamp)
        {
            _type = type;
            _startStamp = startStamp;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void EndProcess()
        {
            _endStamp = DateTime.Now.Ticks;
        }
    }
}
